var mongoose =require('mongoose')               //载入mongoose模块
var url='mongodb://localhost/text'             // 数据库地址端口号/数据库名    
var db=mongoose.createConnection(url);

db.once('open',function(callback){
        console.log('链接成功了')
})

module.exports=db